TenWebOptimizer\OptimizerImages D

Total Complexity 200
Dependencies 5
Dependents 1
Total lines 962
Lines of code 673
Logical lines of code 405
Comment lines 108
Methods 39
Properties 8

Methods 39

Method Rating Maintainability Complexity Lines of code
process_image()
C
33 23 93
add_lazyload()
B
38 21 64
build_source_tag()
A
47 14 33
get_images()
A
48 13 32
add_attachment_id_to_img()
A
43 12 44
replace_video()
A
47 9 32
isExcluded()
A
51 9 25
replace_iframe()
S
50 7 30
get_size_from_tag()
S
50 7 30
url_to_path()
S
52 7 24
filter_lazyload_images()
S
51 7 24
__construct()
S
56 5 18
inject_classes_in_tag()
S
58 5 14
add_lazyload_for_images_pagespeed()
S
66 5 7
disable_optimisation_for_images_pagespeed()
S
66 5 7
filter_lazyload_iframes()
S
59 4 14
filter_lazyload_video()
S
59 4 14
build_picture_tag()
S
50 3 28
build_img_tag()
S
56 3 18
build_attributes()
S
63 4 10
generatePlaceholder()
S
60 3 13
filter_optimize_html_images()
S
60 3 12
replace_img_with_picture()
S
61 3 12
replace_image()
S
64 3 9
isExcludedTag()
S
67 3 8
image_lazyload()
S
72 2 6
remove_picture_tags()
S
68 2 7
instance()
S
71 2 6
disable_pagespeed_image_optimization()
S
72 2 6
smart_lazy_load_data()
S
80 1 3
get_smart_lazy_load_data()
S
82 1 3
get_default_lazyload_placeholder()
S
78 1 3
isImage()
S
78 1 3
get_lazyload_exclusions()
S
82 1 3
isIframe()
S
78 1 3
should_lazyload()
S
82 1 3
run_on_frontend()
S
69 1 6
run()
S
82 1 3
isVideo()
S
78 1 3